﻿using Atletika.Shared.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Atletika.Shared.Entities
{
    public class Competition
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public DateTime DateFrom { get; set; }
        public string City { get; set; }
        public string Organiser { get; set; }
        public bool External { get; set; }
        
        public bool bResults { get; set; }
        public string sResults { get; set; }

        public bool bPropositions { get; set; }
        public string sPropositions { get; set; }

        public string sDate
        {
            get
            {
                return this.City.ToUpper() + " " + this.DateFrom.ToString("dd.MM.yyyy");
            }
        }

        public string ImagePath
        {
            get
            {
                return DownloadHelper.baseAdress + "Content/logos/" + this.Organiser + ".png";
            }
        }
    }
}
